//
//  ATImageDownloader.h
//  ATNetworks
//
//  Created by Ankit Thakur on 18/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface ATImageDownloader : NSObject {

	id         callbackTarget;
	SEL        callbackSelector;
	NSURL     *imageURL;
	NSMutableDictionary	*imageDictionary;
}

@property (assign)            id         callbackTarget;
@property (assign)            SEL        callbackSelector;
@property (nonatomic, retain) NSURL     *imageURL;
@property (nonatomic, copy) NSMutableDictionary     *imageDictionary;

- (void)loadImageFromURL:(NSMutableDictionary*)anImageDictionary withCallbackTarget:(id)target withCallbackSelector:(SEL) selector;
- (void) sendImageBack:(NSDictionary *) data;
- (void) addImageDataToCache:(NSData *)aData forURL:(NSURL *) aImageURL;
+ (NSString*) urlToHashString:(NSURL*)aURL;
- (NSData*) dataForURL:(NSURL*)aURL;

@end